package com.lxl.settings.dao;

import javax.servlet.jsp.jstl.sql.Result;
import java.sql.SQLException;

/**
 * 普通员工表实体类
 * @author 北上寻海
 */
public interface StaffDao {

    /**
     *
     * id查，common_staff
     * @param id user_id
     * @return 用result替代ResultSet作返回值
     * @throws SQLException sql异常上抛
     */
    Result judgePermissionsCommon(String id) throws SQLException;

    /**
     * id查，curator
     * @param id user_id
     * @return 用result替代ResultSet作返回值
     * @throws SQLException sql异常上抛
     */
    Result judgePermissionsCurator(String id) throws SQLException;

    /**
     * id查，category
     * @param id user_id
     * @return 用result替代ResultSet作返回值
     * @throws SQLException sql异常上抛
     */
    Result judgePermissionsCategory(String id) throws SQLException;

    /**
     * id查，administrator
     * @param id user_id
     * @return 用result替代ResultSet作返回值
     * @throws SQLException sql异常上抛
     */
    Result judgePermissionsAdministrator(String id) throws SQLException;
}
